@import '../../styles/mixins/hairline.scss';

.s-cell {
  font-size: $cell-font-size;
  line-height: 1.6;
  position: relative;
  padding: $cell-vertical-padding $cell-horizontal-padding;
  color: $cell-color;
  border-color: $cell-border-color;
  background: $cell-background;

  &__content {
    position: relative;
    display: flex;
    overflow: hidden;
    align-items: center;
    box-sizing: border-box;
  }

  &__label {
    font-size: $cell-label-font-size;
    line-height: 1.4;
    margin-top: $cell-label-margin-top;
    color: $cell-label-color;
  }

  &__title,
  &__value {
    flex: 1;
  }

  &__value {
    position: relative;
    text-align: right;
    color: $cell-value-color;
  }

  &__left-icon,
  &__right-icon {
    font-size: $cell-icon-size;
  }

  &__left-icon {
    margin-right: $padding-base;
  }

  &__right-icon {
    margin-left: $padding-base;
    color: $cell-right-icon-color;
  }

  &--border::after {
    @include hairline-bottom($cell-horizontal-padding, $cell-horizontal-padding);
  }

  &:last-child::after {
    display: none;
  }

  &--hover {
    background: $cell-hover-background;
  }
}